{block admin_content}
<h1>Stavy úkolů</h1>
<table width="100%">
	<thead>
		<tr><th width="20">Pořadí</th><th>Název</th><th width="20">Dokončeno</th><th width="20"><a n:href="addStatus">Přidat</a></th></tr>
	</thead>
	<tbody>
		{foreach $statuses as $status}
		<tr>
			<td class="center">{$status[priority]}</td>
			<td>{$status[name]}</td>
			<td class="center">{$status[completed]|bool2image}</td>
			<td class="center"><a n:href="editStatus, $status[id]"><img src="{$basePath}/images/edit.gif"></a> <a n:href="deleteStatus!, $status[id]" onclick="return del();"><img src="{$basePath}/images/delete.gif"></a></td>
		</tr>
		{/foreach}
	</tbody>
</table>
<script type="text/javascript">
function del(){
	return confirm('Opravdu chcete smazat stav úkolu?');
}
</script>
{/block}